package com.yuyi.kotlindemo.login

import androidx.arch.core.util.Function
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.Transformations.switchMap
import androidx.lifecycle.ViewModel
import com.yuyi.kotlindemo.bean.BaseReqData
import com.yuyi.kotlindemo.bean.UserBean
import com.yuyi.kotlindemo.bean.requestBean.LoginRequest
import com.yuyi.kotlindemo.model.LoginModel

class LoginViewModel : ViewModel() {
    var loginRequest : MutableLiveData<LoginRequest>? = MutableLiveData()

    fun setLoginRequest(){

    }


    fun login(userName : String, password : String){
        var loginRequest = LoginRequest(userName, password)

    }

}